package cn.kust.tarvelService.pojo.vo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @author 马强
 * @data 2022/7/26 10:34
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
public class commentVo {

    private Long commentId;  /*评论id*/

    private Long replyId; /*评论父id*/

    private String commentContent; /*评论内容*/

    private Long articleId; /*文章ID*/

    private Long userId;/*评论用户id*/

    /*回复列表*/
    private List<commentVo> children = new ArrayList<>();

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;   /*回复时间*/


}
